//
// Created by mio on 25-5-12.
//

#ifndef LISTWIDGET_H
#define LISTWIDGET_H

#include <QLabel>
#include <QListWidget>

class CustomWgt;

class ListWidget : public QListWidget
{
    Q_OBJECT
public:
    explicit ListWidget(QWidget *parent = nullptr);
    ~ListWidget();
    void AddWidget(CustomWgt *widget);

signals:
    void itemClicked(int index);

protected:
    void mousePressEvent(QMouseEvent *event) override;

};


#endif // LISTWIDGET_H